-- CALC_EQUIP_8508_PROP

-- 计算魔法坩埚系的基础属性
-- @param user 玩家对象
-- @param classId 装备对象id
return function(user, classId)
    -- 符文师称号等级
    local pet = user:getActivePet();
    if not pet then
        return {};
    end

    local skillLevel = CareerM.getCareerLevel(pet, 206);
    skillLevel  = math.max(1, skillLevel);
    local value = skillLevel * 50;
    local prop = {};

    -- 根据称号等级计算属性
    if skillLevel == 3 then
        prop = { {200, "defense", 1, -1,}, {200, "max_mp", 20, -1,}, {99, 2, value, -1,},};
    elseif skillLevel == 2 then
        prop = { {200, "defense", 1, -1,}, {200, "max_mp", 10, -1,}, {99, 2, value, -1,},};
    else
        prop = { {200, "defense", 1, -1,},{99, 2, value, -1,}, };
    end

    -- 奥术坩埚
    if classId == 8509 then
        table.insert(prop, {819, 1, 1, -1,});
        return prop;
    end

    -- 附魔师坩埚
    if classId == 8510 then
        table.insert(prop, {100, 1, 500, -1,});
        return prop;
    end

    -- 铸剑师坩埚
    if classId == 8511 then
        table.insert(prop, {408, 1, 150, -1,});
        return prop;
    end

    return prop;
end